You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Regress Class > Regress Methods > ANOVA1 Method > Regress.ANOVA1 Method ([In] TMtx, out double, double)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Regress.ANOVA1 Method ([In] TMtx, out double, double)

Performs a one-way (single-factor) analysis of variance (ANOVA).

Syntax
C#
Visual Basic
public static TANOVA1Result ANOVA1([In] TMtx Data, out double p, double Alpha);
Parameters 
Description 
[In] TMtx Data 
Data matrix, each column is separate group. 
out double p 
Returns the significance probability of null hypothesis that two means are equal. If p is less than desired significance alpha then the result suggests the null hypothesis (two means are equal) can be rejected. 
double Alpha 
Desired significance level. 

Performs a one-way (single-factor) analysis of variance.

The following example will perform ANOVA1 on 4 variables.

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Matrix Data = new Matrix(0,0); double signprob; TANOVA1Result ar; Data.SetIt(4,4,false, new double[] {3.2, 2.5, 5.5, 7.0, 6.2, 12.0, 3.0, 4.1, 1.5, 5.7, 4.9, 3.5, 2.5, 3.1, 3.2, 3.4}); ar = Regress.ANOVA1(Data,out signprob,0.05); // ar = (SS1:12.771875; SS2:82.1475; SSTotal:94.919375; // Deg1:3; Deg2:12; DegTotal:15; MS1:4.2572916667; // MS2:6.845625; FDist:0.62189963176; FCrit:3.4902948195 // signprob = 0.614256442 } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!